set -o vi
export ZSH="$HOME/.oh-my-zsh"

#ZSH_THEME="powerlevel10k/powerlevel10k"
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

#ZSH_THEME="spaceship"
#SPACESHIP_MAVEN_SHOW=false


######################################################################
#  Autojump
# 1. intall via `brew install autojump`
#      and then source the configure files like the following 
# 
# 2. I tried to use zplug, but failed. No idea what's the reason
#    It can be installed via zplug, but it doesn't take effect. 
#    It said cannot find out autojump (if not install by brew) 
#
#   zplug "wting/autojump", from:"github", as:command
#   zplug "zsh-users/zsh-syntax-highlighting", defer:2
# 	zplug "plugins/git",   from:oh-my-zsh
#	zplug "zsh-users/zsh-syntax-highlighting"
#	zplug "zsh-users/zsh-completions"
######################################################################

plugins=(
  sudo
  git
  zsh-autosuggestions 
  zsh-syntax-highlighting
  autojump 
  history-substring-search
  zsh-completions
)


[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u

#source $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#source $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
#source $HOME/.oh-my-zsh/custom/plugins/zsh-vi-mode/zsh-vi-mode.zsh
#autoload -U compinit && compinit   #zsh-completions
#[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh



source $ZSH/oh-my-zsh.sh

BASEDIR=$(dirname "$0")

#source ${BASEDIR}/zplug.rc
source ${BASEDIR}/alias.rc
source ${BASEDIR}/pyenv.rc
#source ${BASEDIR}/rbenv.rc
#source ${BASEDIR}/../ranger/ranger.rc
source ${BASEDIR}/../../common/zsh/fzf_zsh.rc
#source ${BASEDIR}/fzf_git.rc


########## Project ##############
source ${BASEDIR}/../projects/proj_cs162.rc

